package cn.krui.project.bean.article;

import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
/**
 * @author: zc
 * email: zc8023zs@163.com
 * create_time: 2020/6/11 16:41:52
 */
@ApiModel(value = "qr_article_ex", description = "内容扩展")
@TableName(value = "qr_article_ex")
public class ArticleEx {
	@ApiModelProperty(value = "内容id")
	@TableId(type = IdType.INPUT,value = "article_id")
	@NotNull(message = "内容id不能为空")
	private Integer article_id;
	@ApiModelProperty(value = "发布平台:PC=1 wap端=2 APP=3 小程序=4")
	@TableField(value="platform")
	private Integer platform;
	@ApiModelProperty(value = "浏览设置:允许访客访问=1 登录后访问=2")
	@TableField(value="view_control")
	private Integer view_control;
	@ApiModelProperty(value = "评论设置:允许游客评论=1 登录后评论=2 不允许评论=3")
	@TableField(value="comment_control")
	private Integer comment_control;
	@ApiModelProperty(value = "数据版本字段")
	@TableField(value="version_id")
	@Version
	private Integer version_id;

 
	public Integer getArticle_id() {
		return article_id;
	}
	public void setArticle_id(Integer article_id) {
		this.article_id = article_id;
	}
 
	public Integer getPlatform() {
		return platform;
	}
	public void setPlatform(Integer platform) {
		this.platform = platform;
	}
 
	public Integer getView_control() {
		return view_control;
	}
	public void setView_control(Integer view_control) {
		this.view_control = view_control;
	}
 
	public Integer getComment_control() {
		return comment_control;
	}
	public void setComment_control(Integer comment_control) {
		this.comment_control = comment_control;
	}
 
	public Integer getVersion_id() {
		return version_id;
	}
	public void setVersion_id(Integer version_id) {
		this.version_id = version_id;
	}

}